package com.xz.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author：xz
 * @Date：2023/4/10
 */
@RestController
public class HelloController {

    @RequestMapping("/hello")
//    @PreAuthorize("hasAuthority('test')")
    @PreAuthorize("hasAuthority('3333')")
    public String hello() {
        return "hello";
    }
}
